#include <iostream>
#include "MyString.h"

int main()
{
    MyStringArray a,b;
    std::cin>>a>>a>>b>>b;
    if(a == b)
        std::cout<<"okkk"; 
    else
        std::cout<<"nooo";


    return 0;
}